FROM python:3.8

WORKDIR /app

ADD requirements.txt /app
RUN pip3 install -i http://mirrors.aliyun.com/pypi/simple \
    --trusted-host mirrors.aliyun.com -r requirements.txt
RUN echo "Asia/shanghai" > /etc/timezone

ADD /common/ /app
ADD /task/ /app
ADD . /app

CMD ["python3","/app/run_main.py"]